package com.example.demo.model;

import java.io.Serializable;

import org.bson.types.ObjectId;

//import javax.persistence.Column;
//import javax.persistence.Transient;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document(collection = "access_token")
public class AccessToken implements Serializable{

	private static final long serialVersionUID = 1L;
	@Id
	private ObjectId _id;
//	@Transient
//	private String id;
	@Field("access_token")
	private String accessToken;
	@Field("token_type")
	private String tokenType;
	@Field("refresh_token")
	private String refreshToken;
	@Field("expires_in")
	private String expiresIn;
	private String scope;
	private String username;

	public ObjectId get_id() {
		return _id;
	}
	public void set_id(ObjectId _id) {
		this._id = _id;
	}
	public String getAccessToken() {
		return accessToken;
	}
	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	public String getTokenType() {
		return tokenType;
	}
	public void setTokenType(String tokenType) {
		this.tokenType = tokenType;
	}
	public String getRefreshToken() {
		return refreshToken;
	}
	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}
	
	public String getScope() {
		return scope;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getExpiresIn() {
		return expiresIn;
	}
	public void setExpiresIn(String expiresIn) {
		this.expiresIn = expiresIn;
	}
	
	
}
